<?php
class TipoVenta extends Doctrine_Record {
    public function setTableDefinition() {
        $this->setTableName('tipoVenta');
        $this->hasColumn('contenido','string',50);
    }

    public static function usuario () {
        return Doctrine::getTable('tipoVenta')->findOneByContenido('trueque');
    }
    public static function publicacion () {
        return Doctrine::getTable('tipoVenta')->findOneByContenido('dinero');
    }
    public static function marker () {
        return Doctrine::getTable('tipoVenta')->findOneByContenido('gratuito');
    }
}
?>